package com.ruoyi.ledger.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 账本对象 yh_ledger
 *
 * @author ruoyi
 * @date 2025-03-02
 */
public class Ledger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账本id主键 */
    private String ledgerId;

    /** 账户id */
    @Excel(name = "账户id")
    private String userId;

    /** 账本名称 */
    @Excel(name = "账本名称")
    private String ledgerName;

    /** 总预算 */
    @Excel(name = "总预算")
    private BigDecimal totalBudget;

    /** 账本类型（ 0:默认 1:婚礼记账） */
    @Excel(name = "账本类型", readConverterExp = "0=:默认,1=:婚礼记账")
    private Long ledgerType;

    /** 是否删除 0:否 1:是 默认为0 */
    @Excel(name = "是否删除 0:否 1:是 默认为0")
    private Integer isDelete;

    public void setLedgerId(String ledgerId)
    {
        this.ledgerId = ledgerId;
    }

    public String getLedgerId()
    {
        return ledgerId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setLedgerName(String ledgerName)
    {
        this.ledgerName = ledgerName;
    }

    public String getLedgerName()
    {
        return ledgerName;
    }
    public void setTotalBudget(BigDecimal totalBudget)
    {
        this.totalBudget = totalBudget;
    }

    public BigDecimal getTotalBudget()
    {
        return totalBudget;
    }
    public void setLedgerType(Long ledgerType)
    {
        this.ledgerType = ledgerType;
    }

    public Long getLedgerType()
    {
        return ledgerType;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("ledgerId", getLedgerId())
                .append("userId", getUserId())
                .append("ledgerName", getLedgerName())
                .append("totalBudget", getTotalBudget())
                .append("ledgerType", getLedgerType())
                .append("remark", getRemark())
                .append("isDelete", getIsDelete())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}

